<?php

/**
 * Description of x10_LocaleManager
 *
 * @author prometheus
 */
class x10_LocaleManager extends x10_Manager
{
	public $xName = 'Nyelvi szótár kezelő';

	protected $defaultLocale = '';

	protected $localeQueryParam = '';

	/**
	 * Konstruktor.
	 * @param x10_Config $config
	 */
	public function __construct(x10_Config $config=NULL)
	{
		parent::__construct($config);
		$this->registerProvider(new x10_Provider_Descriptor('x10_LocaleProvider'));

		$this->defaultLocale = $this->config->getConfigKey('defaultLocale');
		$this->localeQueryParam = $this->config->getConfigKey('localeQueryParam');

		x10::ifDedicated($this);
		x10::dedicate($this);
	}

	public function getDefaultLocale()
	{
		return $this->defaultLocale;
	}
}

?>